/*
 * @description: 奖状类
 */
class ConcreteAwardCertificate implements AwardCertificate {
    private String studentName;
    private String awardName;
    private static String format = "学生 %s 在本学期表现优异，特此颁发 %s 奖项。";

    public ConcreteAwardCertificate() {
        // 默认构造函数，可以添加一些奖状的初始化信息
    }

    @Override
    public AwardCertificate clone() {
        try {
            // 对于奖状格式等静态信息，无需复制，因为它们是不变的
            return (ConcreteAwardCertificate) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }

    @Override
    public void setStudentName(String name) {
        this.studentName = name;
    }

    @Override
    public void setAwardName(String award) {
        this.awardName = award;
    }

    @Override
    public void display() {
        System.out.println(String.format(format, studentName, awardName));
    }
}